package com.huawei.org.mapper;


import com.huawei.basic.mapper.BaseMapper;
import com.huawei.org.dto.ShopDto;
import com.huawei.org.domain.Shop;

import java.util.List;

/**
 * Mapper接口：店铺
 */
public interface ShopMapper extends BaseMapper<Shop> {


    /**
     * 店铺入驻：检验当前入驻信息是否入驻过
     * @param shop
     * @return
     */
    Shop loadByMessage(Shop shop);

    /**
     * 获取每一个店铺状态的数量
     * @return
     */
    List<ShopDto> getShopState();
}
